package b6.vacancyshare.activity;

import b6.vacancyshare.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;

public class MenuPencarianDaftar extends Activity implements AdapterView.OnItemSelectedListener{
	String[] jobtype = {"Full time", "Part time", "Project"};
	Spinner spin;
	Button search;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.search_post);
        
        spin = (Spinner)findViewById(R.id.JobTypeSpinnerSearch);
        search = (Button)findViewById(R.id.SearchButton);
        final Intent route1 = new Intent(this, b6.vacancyshare.controller.PencarianDaftarController.class);
        
        spin.setOnItemSelectedListener(this);
        
        ArrayAdapter<String> aa=new ArrayAdapter<String>(this,
        		android.R.layout.simple_spinner_item,
        		jobtype);
        aa.setDropDownViewResource(
        android.R.layout.simple_spinner_dropdown_item);
        spin.setAdapter(aa);
        
        search.setOnClickListener(new View.OnClickListener() {

			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				startActivity(route1);
			}
        	
        });
    }
    
    public void onItemSelected(AdapterView<?> parent,
    	View v, int position, long id) {
    }

	public void onNothingSelected(AdapterView<?> arg0) {
		// TODO Auto-generated method stub
	}
}